// 获得玩家出拳
var playerAction = process.argv[process.argv.length-1];
var game = require('./lib');
// var result = game(playerAction);
// console.log(result);
var count = 0;
process.stdin.on('data', e=>{
    const playerAction = e.toString().trim();
    const result = game(playerAction);
    if(result===1){
        count++
    };
    if(count===3){
        console.log(`老子不玩了，再见！`);
        process.exit();
    }
    // console.log(result);
})
